package com.cmsz.jiangxm.MyBatisTest.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.cmsz.jiangxm.MyBatisTest.model.User;
import com.github.pagehelper.Page;

@Mapper
public interface UserDao {
	
	int deleteUserById(Integer id);
	
	int deleteAll();

    int insertUser(User record);

    User selectUserById(Integer id);

    int updateUser(User record);

    List<User> getAllUsers();
    
    Page<User> queryByPage(@Param("userName")String userName);
    
}
